<?php
/**
 * @package PWE.tools
 * @author Gmax <gmaxfr78@gmail.com>
 * verification de la validite des chaines
 */
class tools_verif {
    public static function mail($str){
        $str = strtolower($str);
        if( filter_var($str, FILTER_VALIDATE_EMAIL) !== false ) return true;
        else return false;
    }
}

?>